package com.yunxi.model.dealer;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道商业务类型信息
 * </p>
 *
 * @author 
 * @since 2019-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("pms_business")
@ApiModel(value="Business对象", description="渠道商业务类型信息")
public class Business implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "业务ID")
    @TableId(value = "BUSINESS_ID", type = IdType.UUID)
    private String businessId;

    @ApiModelProperty(value = "业务代码")
    @TableField("BUSINESS_CODE")
    private String businessCode;

    @ApiModelProperty(value = "业务名称 销售业务，售后业务，租凭业务")
    @TableField("BUSINESS_NAME")
    private String businessName;

    @ApiModelProperty(value = "状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @JsonDeserialize(using = DateJsonDeserializer.class)
    @TableField(value ="UPDATE_TIME", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @ApiModelProperty(value = "备注")
    @TableField("MEMO")
    private String memo;


}
